<? include_once("../../../common/common_setting_unit.php"); //引入通用的设置文件?>




<?

//接收需要修改的数据的id
$new_detail_nid = addslashes($_REQUEST['nid']);

//传递过来的页面信息。返回的时候，会根据这些信息返回原来的页面
$nowpageid      = addslashes($_REQUEST['nowpageid']);
$sortby         = addslashes($_REQUEST['sortby']);
$now_extender       = addslashes($_REQUEST['now_extender']);

print_r2($_REQUEST);

$_REQUEST['ai_authur']      = $_SESSION['username'];


//设置需要搜索的表格的前缀后缀
$table        = $table_Prefix . "employee";


if(isset($_REQUEST['ai_weixin_send'])){
	$_REQUEST['ai_weixin_send'] = implode(',',$_REQUEST['ai_weixin_send']);
}
else{
	$_REQUEST['ai_weixin_send'] = '';
}
	
if(isset($_REQUEST['jcbd']) && $_REQUEST['jcbd'] == 1){		
	$_REQUEST['ai_open_id'] = ''; //把open_id清空	
}

 $sql=update_date($table,$_REQUEST,"nid",$new_detail_nid);


$query = mysql_query($sql) or die ($sql);
mysql_close($con);

?>



<?

$nowpageid = $_GET["nowpageid"];

?>


<script type="text/javascript">

     alert("输入信息已保存，点击确认返回继续操作.");
     document.location.href = "detail-statistic.php?nowpageid=<? echo $nowpageid ?>&sortby=<? echo $sortby?>&nid=<? echo $new_detail_nid ?>&now_extender=<? echo $now_extender ?>"

</script>


</body>
